package models

// CreateWorkOrders 创建工单表
type CreateWorkOrders struct {
	Id              int64  `gorm:"column:id;      			type:int(20);  primary_key  comment:工单id "         json:"id,string"`
	TaskId          int64  `gorm:"column:task_id; 			type:int(20)        comment:任务id"  json:"task_id,string"`
	Title           string `gorm:"column:title;   			type:varchar(100)   comment:标题"    json:"title"`
	Status          string `gorm:"column:status;  			type:varchar(20)    comment:状态"    json:"status"` //未解决:0，发起人获胜：1，接收人获胜：2
	Description     string `gorm:"column:description;			type:varchar(300)   comment:问题描述" json:"description"`
	AfterSaleAnswer string `gorm:"column:after_sale_answer;   type:varchar(300)   comment:售后解答" json:"after_sale_answer"`
}

func (m *CreateWorkOrders) TableName() string {
	return "work_orders"
}
